// 试卷管理相关接口 - 重新导入自其他模块
import {
  getMyExamsList, 
  getExam, 
  createExam, 
  updateExam, 
  deleteExam 
} from './exams'

import { 
  getMyExamAssignments 
} from './examAssignments'

import { 
  startExamSession, 
  submitExam as submitExamSession, 
  saveDraft, 
  resumeExamSession, 
  getExamSession, 
  getExamSessions 
} from './examSessions'

import { 
  submitExamAnswer, 
  saveDraftAnswer, 
  getMyExamAnswer, 
  getStudentExamAnswer 
} from './examAnswers'

// ===== 试卷相关接口 (Exam) =====
// 获取我的试卷列表
export const getExamList = getMyExamsList

// 获取试卷详情
export const getExamInfo = getExam

// 创建试卷
export const createExamPaper = createExam

// 更新试卷
export const updateExamPaper = updateExam

// 删除试卷
export const deleteExamPaper = deleteExam

// ===== 考试安排相关接口 (Exam Assignment) =====
// 获取我的考试安排列表
export const getMyExamAssignmentList = getMyExamAssignments

// ===== 考试会话相关接口 (Exam Session) =====
// 开始考试
export const startExam = startExamSession

// 提交考试
export const submitExam = submitExamSession

// 保存草稿
export const saveExamDraft = saveDraft

// 恢复考试
export const resumeExam = resumeExamSession

// 获取考试会话信息
export const getExamSessionInfo = getExamSession

// 获取学生考试记录
export const getStudentExamRecords = getExamSessions

// ===== 学生考试答案相关接口 (Exam Answer) =====
// 提交答案
export const submitAnswer = submitExamAnswer

// 保存答案草稿
export { saveDraftAnswer }

// 获取考试结果
export const getExamResult = getMyExamAnswer

// 获取学生考试答案
export const getStudentAnswer = getStudentExamAnswer

